package com.services.impl;

import org.apache.ibatis.session.SqlSession;

import com.bean.Info;
import com.dao.InfoDao;
import com.services.InfoManager;
import com.util.DBHelper;

public class InfoManagerImpl extends DBHelper implements InfoManager {

	private InfoDao infoDao = null;
	private SqlSession session = null;
	
	public void insert(Info info) {
		session  = super.getSession();
		infoDao = session.getMapper(InfoDao.class);
		infoDao.insert(info);
		session.commit();
		infoDao = null;
		super.close(session);

	}

}
